//
//  UITableViewCell+Block.m
//

#import "UITableViewCell+Block.h"
#import <objc/runtime.h>

@implementation UITableViewCell (Block)

static const char OptionBlock = '\0';
- (void)setOptionBlock:(ContentTableCellOptionBlock)optionBlock{
    
    objc_setAssociatedObject(self, &OptionBlock,
    optionBlock, OBJC_ASSOCIATION_COPY_NONATOMIC);
}

- (ContentTableCellOptionBlock)optionBlock{
    
    return objc_getAssociatedObject(self, &OptionBlock);
}

@end
